import BasicLayout from '@/layouts/basic-layout';

const meta = {
	auth: true
};

const pre = 'employee-';

export default {
	path: '/employee',
	name: 'employee',
	redirect: {
		name: `${pre}user`
	},
	meta,
	component: BasicLayout,
	children: [
		{
			path: 'user',
			name: `${pre}user`,
			meta: {
				...meta,
				title: '用户管理'
			},
			component: () => import('@/pages/employee/user')
		},	{
			path: 'user/user-detail',
			name: `user-detail`,
			meta: {
				...meta,
				title: '用户详情'
			},
			component: () => import('@/pages/employee/user/user-detail')
		},	{
			path: 'user/user-add',
			name: `user-add`,
			meta: {
				...meta,
				title: '新增用户'
			},
			component: () => import('@/pages/employee/user/user-add')
		},	{
			path: 'user/user-edit',
			name: `user-edit`,
			meta: {
				...meta,
				title: '新增编辑'
			},
			component: () => import('@/pages/employee/user/user-edit')
		},	{
			path: 'authority',
			name: `${pre}authority`,
			meta: {
				...meta,
				title: '权限管理'
			},
			component: () => import('@/pages/employee/authority')
		},	{
			path: '/employee/authority/authority-detail',
			name: `authority-detail`,
			meta: {
				...meta,
				title: '权限-详情'
			},
			component: () => import('@/pages/employee/authority/authority-detail')
		},
		{
			path: 'comuser',
			name: `${pre}comuser`,
			meta: {
				...meta,
				title: '普通用户管理'
			},
			component: () => import('@/pages/employee/comuser')
		},	{
			path: 'comuser/comuser-detail',
			name: `comuser-detail`,
			meta: {
				...meta,
				title: '用户详情'
			},
			component: () => import('@/pages/employee/comuser/comuser-detail')
		},	{
			path: 'comuser/comuser-add',
			name: `comuser-add`,
			meta: {
				...meta,
				title: '新增用户'
			},
			component: () => import('@/pages/employee/comuser/comuser-add')
		},	{
			path: 'comuser/comuser-edit',
			name: `comuser-edit`,
			meta: {
				...meta,
				title: '新增编辑'
			},
			component: () => import('@/pages/employee/comuser/comuser-edit')
		},
	]
};
